package com.demo.designmode.decorator;

/**
 * @Author: jxm
 * @Description: 快餐接口（抽象构建角色）
 * @Date: 2023-12-13 13:57
 * @Version: 1.0
 */
public abstract class FastFood {

    private float price;
    private String desc;

    public FastFood() {
    }

    public FastFood(float price, String desc) {
        this.price = price;
        this.desc = desc;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    //获取价格
    public abstract float cost();
}
